<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <title>分类</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script src="__ROOT__/static/home/js/shop/rem.js"></script>
    <script type="text/javascript" src="__ROOT__/static/home/js/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="__ROOT__/static/plugins/layer.mobile-v2.0/layer_mobile/layer.js"></script>
    <link rel="stylesheet" type="text/css" href="__ROOT__/static/home/css/shop/base.css"/>
    <link rel="stylesheet" type="text/css" href="__ROOT__/static/home/css/shop/page.css"/>
    <link rel="stylesheet" type="text/css" href="__ROOT__/static/home/css/shop/all.css"/>
    <link rel="stylesheet" type="text/css" href="__ROOT__/static/home/css/shop/mui.min.css"/>
    <link rel="stylesheet" type="text/css" href="__ROOT__/static/home/css/shop/loaders.min.css"/>
    <link rel="stylesheet" type="text/css" href="__ROOT__/static/home/css/shop/loading.css"/>
    <link rel="stylesheet" type="text/css" href="__ROOT__/static/home/css/shop/slick/slick.css"/>
    <link rel="stylesheet" type="text/css" href="__ROOT__/static/home/css/shop/goodscats.css"/>
    <script type="text/javascript">
        $(window).load(function(){
            $(".loading").addClass("loader-chanage")
            $(".loading").fadeOut(300)
        })
    </script>
</head>
<!--loading页开始-->
<!--loading页结束-->
<body>
<!--header star-->
<header class="mui-bar mui-bar-nav" id="header" style="width: 100%;" >
    <a class="btn" href="javascript:history.go(-1)">
        <i class="iconfont icon-fanhui"></i>
    </a>

</header>
<!--header end-->

<div class="warp clearfloat">
    <!--cation star-->
    <div  class="goodscats_box">
        <div style="clear: both"></div>
        {volist  name="rows"  id="data"}
        <div  class="goodsone" style="width: 50%;height:230px;float: left;margin-top: 5px" >
            <div>
                <a  href="{:url('home/Cart/goodsInfo',array('id'=>$data['id']))}" >
                    <img src="__ROOT__{$data['goods_url']}" style="width:90%;height:165px; ">
                </a>
            </div>

            <div  class="goodsinfo" style="width: 90%;height:38px;margin: 0 5%;overflow: hidden;">
                <a  href="{:url('home/Cart/goodsInfo',array('id'=>$data['id']))}" >
                    {$data['goods_name']}
                </a>
            </div>
            <div style="width: 100%" >
                <div style="display: inline-block;width: 35%" >￥:{$data['goods_price']}</div>
                <div  style="display: inline-block;width: 55%">
                    <a  href="{:url('home/Cart/goodsInfo',array('id'=>$data['id']))}"  >
                        商品详情</a>
                </div>
            </div>
        </div>
        {/volist}
</div>
</div>
<!--cation end-->
</div>

<!--footer star-->
<footer class="page-footer fixed-footer" id="footer">
    <ul>
        <li>
            <a href="{:url('home/Index/index')}">
                <i class="iconfont icon-shouye"></i>
                <p>首页</p>
            </a>
        </li>
        <li class="active">
            <a href="{:url('home/Goodscats/goodsCatsList')}">
                <i class="iconfont icon-icon04"></i>
                <p>分类</p>
            </a>
        </li>
        <li>
            <a href="javascript:;"   onclick="seeCart()">
                <i class="iconfont icon-gouwuche"></i>
                <p>购物车</p>
            </a>
        </li>
        <li>
            <a href="{:url('home/Userinfo/index')}">
                <i class="iconfont icon-yonghuming"></i>
                <p>个人中心</p>
            </a>
        </li>
    </ul>
</footer>
<!--footer end-->
</body>
<script>
    //查看购物车
    function seeCart(){
        $.post("{:url('home/Cart/seeCart')}",function(data){
            if( data >0){
                window.location.href="{:url('home/Cart/cartList')}";
            }else if( data==-1){
                layer.open({content: '请先登录用户',skin: 'msg',time: 3 });
                setTimeout('window.location.href="{:url(\'home/login/login\')}"',3000);
            }

        })
    }
</script>
<script src="__ROOT__/static/home/js/shop/goodscats.js" type="text/javascript" ></script>
</html>
